<template>
	<view class="control">
		<view class="box-1">
			<view class="data-item flex-align">
				<view class="image">
					<u--image :src="ticketData.picture" width="211rpx" height="248rpx" radius="5"></u--image>
				</view>

				<view class="detail">
					<view>
						<view class="title elipsis-1" style="font-weight: bold;">{{ ticketData.name }}</view>
						<view class="tag-list flex-align" style="font-size: 22rpx;margin-top: 20rpx;">
							<!-- <view class="tag" v-for="(item, index) in ticketData.venues_project" :key="index">
								{{ item.name }}
							</view> -->
							{{ticketData.sale_start}}/{{ticketData.sale_end}}
						</view>
						<!-- <view class="tiemr elipsis-1">经常事件：2015/12/20</view> -->
						<!-- <view class="tiemr elipsis-1">使用期限：购买后7天</view> -->
					</view>
					<!-- <view class="flex-align" style="margin-bottom: 9rpx;">
						<view v-for="(item, index) in ticketData.venues_project" :key="index" style="margin-right: 10rpx">
							<u-tag :text="item.name" size="mini"></u-tag>
						</view>
						<view class="price-3">
							123132132
						</view>
					</view> -->
					<view class="flex-between">
						<view class="flex-align">
							<view v-for="(item, index) in ticketData.venues_project" :key="index" style="margin-right: 6rpx">
								<u-tag :text="item.name" size="mini"></u-tag>
							</view>
						</view>
						<view class="price-3" v-if="ticketData.open_stock == 1">库存{{ticketData.quantity}}张</view>
					</view>
					<view class="flex-between">
						<view class="flex-align">
							<view class="price">￥{{ ticketData.selling_price }}</view>
							<view class="price-2">￥{{ ticketData.lineation }}</view>
						</view>
						<view class="price-3" v-if="ticketData.volume > ticketData.sale_num">已售{{ticketData.volume}}张</view>
						<view class="price-3"  v-if="ticketData.volume < ticketData.sale_num">已售{{ticketData.sale_num}}张</view>
					</view>
				</view>
			</view>
		</view>

		<view class="box-2">
			<!-- <view class="title">适用场馆</view> -->
			<view class="flex-between" @click="openStoreShow">
				<u-image :src="`${assetsPath}44d8d751bb60e10cc8e83c114d488541605662f5.png`" width="30rpx" height="30rpx"
					shape="square"></u-image>
				<!-- <view class="name" style="position: absolute; left: 0;margin-left: 10%;">{{ venue_name }}</view> -->
				<view class="name" style="white-space: nowrap;
									overflow: hidden;
									text-overflow: ellipsis;width: 444rpx;">{{ venue_name }}</view>
				<view class="flex-align icon">
					<text>适用<text style="color: orange; text-align: center; margin: 0">{{venueslength}}</text>个场馆</text>
					<u-icon name="arrow-right" color="rgb(153,153,153)" size="14"></u-icon>
				</view>
			</view>
		</view>

		<view class="box-3">
			<view class="flex-between image-1">
				<image
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/23486c439eebab21a0831787cad64d5ec2259398.png">
				</image>
				<image mode="aspectFit"
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/f2026f5c65ac585d47b3eef17833b262f362643a.png">
				</image>
				<image
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/cc377ae2075d6caa0f357da921b71bc58a241c79.png">
				</image>
				<image mode="aspectFit"
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/f2026f5c65ac585d47b3eef17833b262f362643a.png">
				</image>
				<image
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/14c51739ebdaf6d43df36b9b2423e843ef9cd9bc.png">
				</image>
				<image mode="aspectFit"
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/f2026f5c65ac585d47b3eef17833b262f362643a.png">
				</image>
				<image
					src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/da98d0fe4de57b84884b7b6e3998dfcb82e7c6a1.png">
				</image>
			</view>
			<view class="flex-between">
				<text>选择商品</text>
				<text>付款成功</text>
				<text>获取二维码</text>
				<text>到店核销</text>
			</view>
		</view>
		<view class="box-4">
			<!-- <u-tabs :list="list1" lineWidth="30" @click="changeTab" :activeStyle="{
          color: 'rgb(47,117,250)',
          fontWeight: '700',
          fontSize: '28rpx',
        }" :inactiveStyle="{ color: 'rgb(153,153,153)', fontSize: '26rpx' }">
			</u-tabs> -->
			<!-- <view class="con" v-if="tabActiveIndex == 0">
				<u-parse :content="ticketData.buy_content"></u-parse>
			</view>
			<view class="con" v-if="tabActiveIndex == 1">
				<u-parse :content="ticketData.user_content"></u-parse>
			</view> -->
			<view class="con" >
				<u-parse :content="ticketData.buy_content"></u-parse>
			</view>
		</view>

		<view class="box-2">
			<!-- <view class="title">详情</view> -->
			<u-parse :content="ticketData.content"></u-parse>
		</view>
		<view class=""  v-if="time_start >= sale_start && time_start <= sale_end">
		
			<!-- 日期时间 -->
			<view v-if="ticketData.inventory  == 0">
				<view class="footer flex-align">
					<footerLeft></footerLeft>
					<view class="btn" @click="selectAlertShowlist" v-if="ticketData.quantity  == 0">立即购买</view>
				</view>
			</view>
			<!-- 启用库存 -->
			<view v-if="ticketData.inventory  == 1">
				<!-- 库存限制 -->
				<view class="footer flex-align" v-if="ticketData.open_stock  == 1">
					<!-- <view class="menu">
						<image mode="aspectFit" src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/e04921dea41d1323bb7d5b6fc91349c0d030bd9a.png"></image>
						<text>店铺</text>
					</view> -->
					<footerLeft></footerLeft>
					<!-- <view class="btn" @click="openSelectAlert">立即购买</view> -->
					<view class="btn" @click="handSubmit" v-if="ticketData.quantity  > 0">立即购买</view>
					<view class="btn_n" v-if="ticketData.quantity  == 0">库存不足</view>
				</view>
				<!-- 无限库存 -->
				<view class="footer flex-align" v-if="ticketData.open_stock == 0">
					<footerLeft></footerLeft>
					<view class="btn" @click="handSubmit">立即购买</view>
				</view>
			</view>
		</view>
		

		<!-- 场馆 -->
		<con-alert :show="alertShow" @close="close" title="适用场馆" @touchmove.stop.prevent="">
			<view class="select-list">
				<view class="item flex-align" v-for="item in ticketData.venues" :key="item">
					<view class="image">
						<u--image radius="5" :src="item.venue_thumb" width="100%" height="100%"></u--image>
					</view>
					<view class="detail">
						<view>
							<view class="name">
								{{ item.venue_name }}
							</view>
							<view class="timer"> 营业时间：{{ item.open_time }} </view>
						</view>

						<view class="flex-between bottom">
							<view class="flex-align" style="width: 70%">
								<u-icon name="map-fill" color="#cacaca" size="12"></u-icon>
								<text class="address">{{ item.address }}</text>
							</view>
							<!-- <view class="flex-align" @click="phone(item , index)"> -->
							<view class="flex-align">
								<text>{{ item.phone }}</text>
								<u-icon name="phone" color="#cacaca" size="12"></u-icon>
							</view>
						</view>
					</view>
				</view>
			</view>
		</con-alert>

		<!-- 选择弹窗 -->
		<con-alert :show="selectAlertShow" @close="close2" isFooter title="请选择">
			<!-- <con-alert :show="selectAlertShow" @close="close2" isFooter @click="handSubmit"> -->
			<view class="section">
				<view class="section-1 flex-align">
					<view class="image">
						<image :src="ticketData.picture" width="211rpx" height="248rpx" radius="5"></image>
					</view>
					<view class="detail">
						<view>
							<view class="detail-1">
								{{ ticketData.name }}
							</view>
							<view class="flex-align " style="margin-top: 20rpx;margin-right: 10rpx">
								<!-- <view v-for="(item, index) in checkedSpec" :key="index" style="margin-right: 10rpx"> -->
								<!-- <u-tag :text="item.name"></u-tag> -->
								<!-- </view> -->
								<view v-if="namelist != ''" class="sav" style="font-size: 26rpx;
								color: white;
								border-radius: 4rpx;
								padding: 7rpx 10rpx;
								color: #fff;
								background-color: #3c9cff ;
								margin-right: 10rpx;margin-top: 5rpx;">
									{{namelist}}
								</view>
								<view v-if="namelists != ''" class="sav" style="font-size: 26rpx;
								color: white;
								border-radius: 4rpx;
								padding: 7rpx 10rpx;
								color: #fff;
								background-color: #3c9cff ;
								margin-right: 10rpx;margin-top: 5rpx;">
									{{namelists}}
								</view>

							</view>
						</view>
						<view class="flex-align" style="margin-top: 8rpx">
							<view v-for="(item, index) in ticketData.venues_project" :key="index" style="margin-right: 10rpx">
								<u-tag :text="item.name" size="mini"></u-tag>
							</view>
						</view>
						<view style="display: flex; align-items: center;justify-content: space-between;">
							<view class="price">￥<text>{{ ticketData.selling_price }}</text>
							</view>
							<view class="detail-2">库存:<text style="color: orange">{{elseStock}}</text></view>
						</view>
					</view>
				</view>

				<!-- <view class="section-2" v-for="(item, index) in data_specs" :key="index">
					<view class="sub-title">{{ item.name }}</view>
					<view class="tag-list">
						<u-tag v-for="(item2,index2) in item.list" :key="index2" :text="item2.name"  :plain="!item2.checked" type="warning" :name="index"
							@click="data_specss(item2,index2,name)" />
					</view>
				</view> -->
				<!-- <view class="" style="height: 610rpx;width: 100%;overflow-y: scroll;"> -->
					<view class="section-2">
						<view class="sub-title">日期</view>
						<view class="tag-list">
					
							<!-- <u-tag v-for="(item2,index2) in data_specs" :key="index2" :text="item2.name"  :plain="!item2.checked" type="warning" :name="index2"
								@click="data_specss(item2,index2)" /> -->
							<u-tag v-for="(item2,index2) in data_specs" :key="index2" :text="item2.name" type="warning"
								:bgColor="
								  data_name.indexOf(item2) > -1
								    ? 'rgba(47, 117, 250, 0.05)'
								    : '#EFEFEF'
								" :borderColor="
								  data_name.indexOf(item2) > -1 ? '#2F75FA' : 'rgba(0,0,0,0)'
								" :color="data_name.indexOf(item2) > -1 ? '#2F75FA' : '#333'" @click="data_specss(item2,index2)" />
					
						</view>
					</view>
					
					<view class="section-2">
						<view class="sub-title">时间段</view>
						<view class="tag-list">
							<!-- <u-tag v-for="(item3, index3) in data_specs_s" :key="index3" :text="item3.name" :plain="!item3.checked" type="warning" :name="index3"
								@click="clickSpec(item3,index3)" /> -->
							<u-tag v-for="(item3, index3) in data_specs_s" :key="index3" :text="item3.name" type="warning"
								:bgColor="
								  checkedSpec.indexOf(item3) > -1
								    ? 'rgba(47, 117, 250, 0.05)'
								    : '#EFEFEF'
								" :borderColor="
								  checkedSpec.indexOf(item3) > -1 ? '#2F75FA' : 'rgba(0,0,0,0)'
								" :color="checkedSpec.indexOf(item3) > -1 ? '#2F75FA' : '#333'" @click="clickSpec(item3,index3)" />
					
						</view>
					</view>
				<!-- </view> -->
				
				<!-- <view class="btns" @click="handSubmit" v-if="chooseStock > 0">确定</view> -->
				<!-- <view class="" style="position: fixed; width: 730rpx;height: 100rpx;left: 0;z-index: 999;bottom: 10rpx;"> -->
					<view class="btns" @click="handSubmit" v-if="elseStock > 0">确定</view>
					<view class="btns_s" v-if="elseStock == 0">确定</view>
				<!-- </view> -->
				
			</view>
		</con-alert>

	</view>
</template>

<script>
	import conAlert from "@/components/com-alert/com-alert.vue";
	import footerLeft from "@/components/footer-left/footer-left.vue";
	const venues = require("@/api/venues/venues.js");
	export default {
		data() {
			return {
				assetsPath: this.$https.assetsPath,
				alertShow: false,
				selectAlertShow: false, //选择商品
				tabActiveIndex: 0,
				list1: [{
						name: "购买说明"
					}, {
						name: "用户须知"
					},
					// {
					// 	name: "评价记录"
					// },
				],
				timeData: {},
				id: 0,
				ticketData: {},
				venue_name: "",
				venue_id: 0,
				data_specs: [],
				data_specs_s: [],
				savlist: [],
				price: '0:00',
				elseStock: 0,
				namedata: '',
				data_name: [],
				checkedSpec: [],
				ticket_id: '',
				nametime: "",
				inventory: '',
				nametimid: '',
				namelists: "",
				namelist: "",
				time_start: '',
				sale_end: '',
				sale_start: '',
				venueslength:''
			};
		},
		components: {
			conAlert,
			footerLeft
		},
		onLoad(options) {
			this.id = options.id;
			this.venue_name = options.venue_name;
			this.venue_id = options.venue_id;
			this.getShopTicket();
			// this.data_specs_s = this.data_specs_a
			this.getTicketDateSku()

		},
		methods: {
			// 日期
			async getTicketDateSku() {
				uni.showLoading({
					title: "加载中",
					mask: true,
				});
				let postData = {
					ticket_id: this.id,
					project_id: getApp().globalData.projectId,
					app_id: this.$https.weixinAppId,
				};
				let res = await venues.getTicketDateSku(postData);
				this.data_specs = res.data.result.dateList

				uni.hideLoading();
			},
			// 时间
			async getTicketTimeSku() {
				uni.showLoading({
					title: "加载中",
					mask: true,
				});
				let postData = {
					ticket_id: this.id,
					project_id: getApp().globalData.projectId,
					app_id: this.$https.weixinAppId,
					sell_date: this.namedata
				};
				let res = await venues.getTicketTimeSku(postData);
				this.data_specs_s = res.data.result.dateList
				uni.hideLoading();
			},
			// 日期点击事件
			data_specss(item2, index2) {
				this.namelist = item2.name
				this.elseStock = 0
				this.data_name = []
				this.namedata = item2.name
				this.ticket_id = item2.ticket_id
				let data_name = []
				this.data_specs.forEach(item => {
					data_name.push(item)
				})
				data_name.some((item, index) => {
					if (item == item2) {
						this.data_name[index] = item2;
						this.$forceUpdate();
					}
				});

				this.data_specs.map((item, index) => {
					item.checked = index === index2 ? true : false
				})

				this.getTicketTimeSku()
			},
			// 时间点击事件
			clickSpec(item3, index3) {
				this.namelists = item3.name
				this.checkedSpec = []
				this.nametime = item3.name
				this.nametimid = item3.id
				let checkedSpec = []
				this.data_specs_s.forEach(item => {
					checkedSpec.push(item)
				})
				checkedSpec.some((item, index) => {
					if (item == item3) {
						this.checkedSpec[index] = item3;
						this.$forceUpdate();
					}
				});
				this.data_specs_s.map((item, index) => {
					item.checked = index === index3 ? true : false
				})
				// this.chooseStock = item3.chooseStock
				this.getSkuFromTime()
			},
			// 库存限购判断/sass-test/public/index.php/api/ticket/submit
			async getSkuFromTime() {
				var that = this;
				let params = {
					project_id: getApp().globalData.projectId,
					app_id: that.$https.weixinAppId,
					ticket_id: that.ticket_id,
					choose_date: that.namedata,
					time_id: that.nametimid,
				};
				let res = await venues.getSkuFromTime(params);
				if (res.code == 1) {
					this.elseStock = res.data.result
				}
			},
			async getShopTicket() {
				uni.showLoading({
					title: "加载中",
					mask: true,
				});
				let postData = {
					ticket_id: this.id,
					project_id: getApp().globalData.projectId,
					appid: this.$https.weixinAppId,
					venue_id: this.venue_id,
					goods_type: "ticket",
				};
				let res = await venues.getTicketDetail(postData);
				if (res.code == 1) {
					this.ticketData = res.data;
					this.venueslength = res.data.venues.length;
					let sale_end = res.data.sale_end
					let sale_start = res.data.sale_start
					this.sale_end = new Date(sale_end.replace(/-/g, '/')).getTime(); //结束时间
					this.sale_start = new Date(sale_start.replace(/-/g, '/')).getTime(); //开始时间
					// this.time_start = new Date().getTime()
					
					// var _this = this
					// var now = new Date()
					// var y = now.getFullYear()
					// var m = now.getMonth() + 1
					// var d = now.getDate()
					// let current_year_month = y + '-' + m + '-' + d
					// this.time_start = new Date(current_year_month.replace(/-/g, '/')).getTime(); //开始时间
					
					this.time_start=new Date().getTime()
					
					if (res.data.quantity > 0) {
						this.selectAlertShow = false
						this.inventory = 1
					} else if (res.data.quantity == 0) {
						this.inventory = 0
					}
					uni.hideLoading();
				}
			},
			selectAlertShowlist() {
				if (uni.getStorageSync("openid") == '') {
					uni.showToast({
						title: '请登录！',
						icon: 'exception',
						duration: 850
					});
					uni.reLaunch({
						url: '/pages/personal/personal'
					})
				} else {
					this.selectAlertShow = true
				}

			},
			handSubmit() {
				if (uni.getStorageSync("openid") == '') {
					uni.showToast({
						title: '请登录！',
						icon: 'exception',
						duration: 850
					});
					uni.reLaunch({
						url: '/pages/personal/personal'
					})
				} else {
					// sell_date: this.namedata  日期
					let ticketID = this.ticketData.id;
					uni.redirectTo({
						// url: `/page_venues/pages/venuesDetail/ticketModule/makeOther?selectionArr=${encodeURIComponent(JSON.stringify(this.selectionArr))}`
						url: "/page_venues/pages/venuesDetail/ticketModule/makeOther_fuzhi?ticketID=" +
							ticketID +
							"&venue_name=" +
							this.venue_name +
							"&venue_id=" +
							this.venue_id +
							"&goods_type=ticket" +
							'&pay_wait_time=' +
							this.ticketData.pay_wait_time + ' &namedata=' +
							this.namedata + '&ticket_id=' +
							this.id + '&nametimid=' +
							this.nametimid + '&windows='  + this.ticketData.windows  + '&namelist=' +
							this.namelist+ '&namelists=' +
							this.namelists + '&inventory=' +
							this.inventory,


					});
				}


			},
			changeTab(data) {
				this.tabActiveIndex = data.index;
			},
			close2() {
				this.selectAlertShow = false;
			},
			openSelectAlert() {
				this.selectAlertShow = true;
			},
			close() {
				this.alertShow = false;
			},
			openStoreShow() {
				this.alertShow = true;
			},
			onChange(e) {
				this.timeData = e;
			},
			/* phone(item, index) {
				uni.makePhoneCall({
					phoneNumber: item.phone
				})
			} */
		},
	};
</script>

<style lang="scss" scoped>
	.u-content {
		padding: 24rpx;
	}

	.control {
		width: 100%;
		background-color: #f3f3f3;
		height: 100vh;
		overflow-y: auto;
		// min-height: 100vh;
		padding-bottom: 140rpx;

		.box-1 {
			// padding: 30rpx 30rpx;
			padding: 30rpx 30rpx 30rpx 30rpx;
			background-color: rgb(255, 255, 255);

			.data-item {
				margin-top: 20rpx;
				height: 230rpx;

				.image {
					width: 200rpx;
					height: 100%;

					/deep/ .u-fade-enter-to {
						height: 100%;
					}
				}

				.detail {
					height: 100%;
					width: 0;
					flex: 1;
					margin-left: 25rpx;
					display: flex;
					flex-direction: column;
					justify-content: space-between;

					.title {
						font-size: 30rpx;
						margin-bottom: 10rpx;
					}

					.tag-list {
						margin-bottom: 10rpx;

						.tag {
							font-size: 22rpx;
							color: white;
							border-radius: 4rpx;
							padding: 5rpx 10rpx;
							color: #fff;
							background-color: #2979ff;
							margin-right: 10rpx;
						}
					}

					.tiemr {
						color: #cfcfcf;
						font-size: 24rpx;
					}

					.price {
						font-size: 32rpx;
						color: #ff4811;
						font-weight: 700;
						margin-right: 10rpx;
					}

					.price-2 {
						color: #cfcfcf;
						font-size: 22rpx;
						text-decoration: line-through;
					}

					.price-3 {
						color: #cfcfcf;
						font-size: 22rpx;
					}
				}
			}
		}

		.box-2 {
			margin-top: 20rpx;
			padding: 30rpx 30rpx;
			background-color: rgb(255, 255, 255);

			.title {
				color: rgb(47, 117, 250);
				font-size: 28rpx;
				font-weight: 700;
				margin-bottom: 40rpx;
			}

			.name {
				color: rgb(51, 51, 51);
				font-size: 28rpx;
				font-weight: 700;
			}

			.icon {
				color: rgb(153, 153, 153);
				font-size: 28rpx;
				font-weight: 700;

				text {
					margin-right: 10rpx;
				}
			}
		}

		.box-3 {
			// margin-top: 20rpx;
			padding: 40rpx 20rpx 25rpx 29rpx;
			color: rgb(51, 51, 51);
			font-size: 24rpx;
			font-weight: 700;
			background-color: rgb(255, 255, 255);

			.image-1 {
				padding: 0 24rpx;
				margin-bottom: 26rpx;

				image {
					width: 47rpx;
					height: 46rpx;
				}
			}
		}

		.box-4 {
			margin-top: 20rpx;
			// padding: 0rpx 20rpx 40rpx 29rpx;
			padding: 30rpx 30rpx;
			color: rgb(51, 51, 51);
			background-color: rgb(255, 255, 255);

			.con {
				// margin-top: 20rpx;
			}
		}

		.footer {
			position: fixed;
			width: 100%;
			background-color: white;
			bottom: 0;
			left: 0;
			padding: 20rpx 25rpx 20rpx 25rpx;
			box-sizing: border-box;

			.menu {
				display: flex;
				flex-direction: column;
				align-items: center;
				margin-right: 40rpx;

				image {
					width: 35rpx;
					height: 35rpx;
				}

				text {
					color: rgb(51, 51, 51);
					font-size: 24rpx;
					font-weight: 700;
					margin-top: 13rpx;
				}
			}

			.btn {
				flex: 1;
				color: rgb(255, 255, 255);
				font-size: 30rpx;
				padding: 26rpx 0;
				border-radius: 60rpx;
				background-color: #3e80fc;
				text-align: center;
				font-weight: 700;
			}

			.btn_n {
				flex: 1;
				color: rgb(255, 255, 255);
				font-size: 30rpx;
				padding: 26rpx 0;
				border-radius: 60rpx;
				background-color: #a6a6a6;
				text-align: center;
				font-weight: 700;
			}
		}

		// 弹窗

		.select-list {
			.item {
				margin-bottom: 20rpx;
				padding-bottom: 20rpx;
				height: 150rpx;
				border-bottom: 1px solid #cccccc;

				&:last-of-type {
					border: none;
					margin: 0;
					padding: 0;
				}

				.image {
					width: 150rpx;
					height: 100%;

					/deep/ .vue-ref {
						width: 100%;
						height: 100%;
					}
				}

				.detail {
					display: flex;
					height: 100%;
					flex: 1;
					width: 0;
					margin-left: 20rpx;
					flex-direction: column;
					justify-content: space-between;

					.name {
						font-weight: 700;
						font-size: 28rpx;
						margin-bottom: 15rpx;
					}

					.timer {
						color: #cacaca;
						font-size: 20rpx;
					}

					.bottom {
						font-size: 20rpx;
						color: #cacaca;

						.address {
							width: 70%;
							white-space: nowrap;
							overflow: hidden;
							text-overflow: ellipsis;
						}
					}
				}
			}
		}


		.section {
			.btns {
				background: linear-gradient(0deg, #528EFF, #2F75FA);
				border-radius: 20px;
				font-size: 28rpx;
				font-weight: bold;
				color: #FFFFFF;
				padding: 26rpx 0;
				margin: 0px 30rpx;
				margin-top: 120rpx;
				text-align: center;
			}

			.btns_s {
				background: linear-gradient(0deg, #bebebe, #bebebe);
				border-radius: 20px;
				font-size: 28rpx;
				font-weight: bold;
				color: #FFFFFF;
				padding: 26rpx 0;
				margin: 0px 30rpx;
				margin-top: 120rpx;
				text-align: center;
			}

			.section-1 {
				height: 248rpx;



				.image {
					width: 211rpx;
					height: 248rpx;
					margin-right: 26rpx;
					// border-radius: 10rpx;

					overflow: hidden;

					image {
						width: 100%;
						height: 100%;
					}
				}

				.detail {
					flex: 1;
					width: 0;
					display: flex;
					height: 100%;
					flex-direction: column;
					justify-content: space-between;

					.detail-1 {
						font-size: 27rpx;
						font-weight: 500;
						color: #333333;

						.flex-align {
							.sav {
								font-size: 22rpx;
								color: white;
								border-radius: 4rpx;
								padding: 5rpx 10rpx;
								color: #fff;
								background-color: #2979ff !important;
								margin-right: 10rpx;
								// /deep/.u-tag {
								// 	margin-left: 30rpx;
								// }
							}
						}

					}

					.detail-2 {
						font-size: 24rpx;
						font-weight: 500;
						color: #888888;
						margin-top: 12rpx;

						text {
							font-size: 32rpx;
						}
					}

					.price {
						font-size: 20rpx;
						font-weight: 500;
						color: #ff0000;

						text {
							font-size: 32rpx;
							font-weight: 700;
						}
					}
				}
			}

			.section-2 {
				margin-top: 50rpx;

				.sub-title {
					font-size: 28rpx;
					font-weight: bold;
					color: #333333;
					margin-bottom: 20rpx;
				}

				.tag-list {
					display: flex;
					flex-wrap: wrap;

					/deep/.u-tag {
						margin-left: 30rpx;
						margin-bottom: 30rpx;
					}

					// .tag{
					// 	background: #EFEFEF;
					// 	border-radius: 3px;
					// 	font-size: 24rpx;
					// 	font-weight: 500;
					// 	color: #FFFFFF;
					// 	padding: 7rpx 20rpx;
					// 	margin-right: 20rpx;
					// 	margin-bottom: 20rpx;
					// }

				}
			}

			.section-3 {
				font-size: 22rpx;
				font-weight: 500;
				color: #333333;
			}
		}
	}
</style>
